package com.hdd.biz.member.service.impl;

import com.hdd.biz.member.entity.Syslog;
import com.hdd.biz.member.mapper.SyslogMapper;
import com.hdd.biz.member.service.SyslogService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author fang
 * @since 2021-04-20
 */
@Service
public class SyslogServiceImpl extends ServiceImpl<SyslogMapper, Syslog> implements SyslogService {

    @Override
    public void insertLog(String tag, String request, String response, String remarks) {
        Syslog syslog = new Syslog();
        syslog.setTag(tag);
        syslog.setRequest(request);
        syslog.setResponse(response);
        syslog.setRemarks(remarks);
        baseMapper.insert(syslog);
    }

}
